package com.study.res.enums;

/**
 * @ClassName ErrorEnum
 * @Author swj
 * @Date 2020/10/10 10:22
 */
public enum  ErrorEnum {
    DUPLICATE_KEY(1000,"标识符重复"),
    DUPLICATE_ROLE_NAME(1001,"角色名重复"),
    DUPLICATE_USER_CODE(1002,"用户账号重复"),
    USER_NOT_LOGIN(1003,"用户未登录"),
    QUESTIONNAIRE_PARAM_IS_NULL(2000,"类型或问题详情为空"),
    PARAM_IS_NULL(2001,"参数为空"),
    SYSTEM_EXCEPTION(500,"服务器发生异常")
            ;

    private Integer respCode;
    private String respMsg;

    ErrorEnum(Integer respCode, String respMsg) {
        this.respCode = respCode;
        this.respMsg = respMsg;
    }
    public Integer getRespCode() {
        return respCode;
    }
    public String getRespMsg() {
        return respMsg;
    }
}
